﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace DreamWork.Model.ViewModel
{
    public abstract class PageInfo
    {
        public int PageSize { get; set; } = 10;
        /// <summary>
        /// 页码
        /// </summary>
        public int PageIndex { get; set; } = 1;
    }
    /// <summary>
    /// 模糊查询参数提交模型
    /// </summary>
    public class QueryPageInfo : PageInfo
    {
        public string SearchInfo { get; set; } = string.Empty;

    }

    /// <summary>
    /// 根据父级Id，模糊查询集合列表
    /// </summary>
    public class IdQueryPageInfo: PageInfo
    {
        public string SearchInfo { get; set; } = string.Empty;

        public int Id { get; set; }

    }

    /// <summary>
    /// 根据父级Id Str类型，模糊查询集合列表
    /// </summary>
    public class IdStrQueryPageInfo : PageInfo
    {
        public string SearchInfo { get; set; } = string.Empty;

        public string Id { get; set; }

    }

    public class PageResultInfo : PageInfo
    {
        public long TotalCount { get; set; }
    }
}
